 
/******************************************************FILESTTAUNCH.H******************************************************/
  
/*    LIST OF HEADER FILES REQUIRED FOR THE PROGRAM */
#include<stdio.h>
#include<stdlib.h>
#include<ctype.h>
#include<math.h>
#include<string.h>
#include<sys/types.h>
#include<dirent.h>
#include<errno.h>
#include <termios.h>
#define HOME "/home/mohapatra"		
 /*     STRUCTURE TO KEEP INFORMATION ABOUT ENCRYPTED FILES */
/*struct info
{
	int key_key;
	long int check;
	int pass;
	int tech;
}I;    */                




/*	FUNCTIONS FOR ENCRYPTION	*/

void encrypt(char *,char *,int);	                //ENCRYPTION FUNCTION
void sub_cip( char* ,char *);                   //ENCRYPTS USING SUBSTITUTION CIPHER
void pass_encrypt(const char*, char*);          //ENCRYPTS USING GIVEN PASSWORD
void key_gen(  char *,char *);                  //ENCRYPTS USING KEY GENERATION CIPHER
void fun( unsigned int Key );                   //STORES BINARY STRINGS IN ARRAY a[10]
void left ( void ) ;                            //LEFT SHIFTS THE 4 LEFTMOST BITS OF ARRAY b[8]
void right ( void ) ;                           //LEFT SHIFTS THE 4 RIGHTMOST BITS OF ARRAY b[8]
unsigned int Deci ( void );                     //DECIMAL CONVERSION OF THE BINARY STRINGS OF
				                //THE  ARRAY b[8] WHICH BECOMES THE KEY 

/*	FUNCTIONS FOR DECRYPTION	*/

void decrypt(char *,char *);		                        //DECRYPTION FUNCTION
void dec_sp( char *);                       //DECRYPTS USING SUBSTITUTION CIPHER
void dec_pass(const char*,char *);        //DECRYPTS USING GIVEN PASSWORD
void dec_kg ( char *, int );   	                //DECRYPTS USING KEY GENERATION CIPHER


/*      GENERAL PURPOSE FUNCTIONS        */

void show_dir();                                //SHOW THE CONTENTS OF AN INPUT DIRECTORY
int check_name(const char *);                   //CHEKS THE VALIDITY OF AN INPUT NAME
void show_file();                              //SHOW THE CONTENTS OF A FILE
unsigned long int checksum(const char *);       //CALCULATES THE CHECKSUM OF A GIVEN FILE
